package com.example.control;

import android.content.Intent;
import android.os.Bundle;
import android.widget.Toast;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

/**
 * @Author : dushaohui
 * @Time : on 2024/3/11 14:07
 * @Description : BaseActivity
 */
public class BaseActivity extends AppCompatActivity {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

    }

    /**
     * 吐司
     */
    protected void showMsg(CharSequence msg){
        Toast.makeText(this,msg,Toast.LENGTH_SHORT).show();
    }

    /**
     * 跳转
     * @param tClass
     */
    protected void intentActivity(Class<?> tClass){
        startActivity(new Intent(this,tClass));
    }

}
